package com.tuling.api.core;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * author: xl
 * time: 2018/12/7 17:16
 * description:
 **/
@RestController
public class ApiGateway {


    @Autowired
    private ApiGatewayHandle apiHand;


    @RequestMapping(value = "/api")
    public void handleRequest(HttpServletRequest request, HttpServletResponse response){
        apiHand.handle(request,response);
    }


}
